package com.woniuxy.exam.service;

import com.woniuxy.exam.entity.BookCategory;
import com.woniuxy.exam.mapper.BookCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookCategoryService {

    @Autowired
    BookCategoryMapper categoryMapper ;

    public List<BookCategory> findAll(){
        return categoryMapper.selectAll();
    }
}
